package com.market.plus.ocm.service;

import java.awt.Dimension;
import java.io.IOException;
import java.io.InputStream;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

import com.market.plus.ocm.model.MetadataScaleFile;

public interface ScaleImageService {

   MetadataScaleFile[] scaleMediumAndSmall(CommonsMultipartFile file) throws Exception;

   MetadataScaleFile scaleMedium(InputStream inputStream, String mimeType) throws Exception;

   MetadataScaleFile scaleSmall(InputStream inputStream, String mimeType) throws Exception;

   MetadataScaleFile scaleMedium(byte[] bytes, String mimeType) throws Exception;

   MetadataScaleFile scaleSmall(byte[] bytes, String mimeType) throws Exception;

   Dimension getMetadataScaleFile(InputStream inputStream) throws IOException;
}
